import request from '@/api/request'

export function adsList() {
  return request({
    url: `/lejuAdmin/advertise/adsList`,
    method: 'get'
  })
}

export function addAds(data) {
  return request({
    url: `/lejuAdmin/advertise/addAds`,
    method: 'post',
    data
  })
}

export function delAds(adsId) {
  return request({
    url: `/lejuAdmin/advertise/delAds/${adsId}`,
    method: 'DELETE',
  })
}

export function updateAds(data) {
  return request({
    url: `/lejuAdmin/advertise/updateAds`,
    method: 'post',
    data
  })
}



